package com.item.util;

import java.io.Serializable;

public class Tuple implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 4858918236952977842L;
	public static class TupleTwo<A, B> implements Serializable {
		/**
		 * 
		 */
		private static final long serialVersionUID = 3949086569306446058L;
		/**
		 * 
		 */
		protected A t1;
		protected B t2;
		public TupleTwo(A t1, B t2) {
			super();
			this.t1 = t1;
			this.t2 = t2;
		}
		public A getT1() {
			return t1;
		}
		public void setT1(A t1) {
			this.t1 = t1;
		}
		public B getT2() {
			return t2;
		}
		public void setT2(B t2) {
			this.t2 = t2;
		}
		@Override
		public String toString() {
			return "TupleTwo [t1=" + t1 + ", t2=" + t2 + "]";
		}
		
	}
	public static class TupleThree<A, B, C> extends TupleTwo<A, B> implements Serializable {
		/**
		 * 
		 */
		private static final long serialVersionUID = 2809780093803438809L;
		protected C t3;
		public TupleThree(A t1, B t2, C t3) {
			super(t1, t2);
			// TODO Auto-generated constructor stub
			this.t3 = t3;
		}
		public C getT3() {
			return t3;
		}
		public void setT3(C t3) {
			this.t3 = t3;
		}
		@Override
		public String toString() {
			return "TupleThree [t3=" + t3 + ", t1=" + t1 + ", t2=" + t2 + "]";
		}
		
	}
}
